
import { createRouter, createWebHashHistory,createWebHistory } from 'vue-router'
import MoveApp from '../views/MoveApp.vue'


//构建路由元文件
const routes =[
    {
        path:'/home',
        name:'Home',
        component: ()=>import('../views/Home.vue')
    },
    {
        path:'/',
        name:'MoveApp',
        component: MoveApp
    },
    {
        path:'/openapp',
        name:'OpenApp',
        component: ()=>import('../views/OpenApp.vue')
    },
    {
        path:'/searchs',
        name:'Searchs',
        component: ()=>import('../views/Searchs.vue')
    },
    {
        path:"/catfrend",
        name:'CatFrend',
        component: ()=>import('../views/movecat/Catfrend.vue'),
        meta:{title:'车友圈'}
    },
    {
        path:"/newcat",
        name:'newcat',
        component: ()=>import('../views/movecat/NewCat.vue'),
        meta:{title:'选车'}
    },
    {
        path:"/persche",
        name:'persche',
        component: ()=>import('../views/movecat/Persche.vue'),
        meta:{title:'二手车'}
    },{
        path:'/cardetail',
        name:'cardetail',
        component: ()=>import('../views/movecat/CatVideDeatail.vue'),
        meta:{title:'车详情'}
    }
]

//创建路由的实例对象
const router = createRouter({
    history: createWebHistory(),
    routes
})

// 导出路由 意义是谁用谁调用
export default router
